import request from '@/utils/request'
//查询商品列表
export function listGood(query){
    return request({
        url:'/lh/good/pageList',
        method:'post',
        params: query
    })
}


//新增商品信息
export function addGood(data){
    return request({
        url:'/lh/good/addGood',
        method:'post',
        data:data
    });
}

//修改商品信息
export function updateGood(data){
    return request({
        url:'/lh/good/updateGood',
        method:'post',
        data:data
    });
}

//根据ID删除商品信息
export function getGoodById(id){
    return request({
        url:'/lh/good/getGoodById/'+id,
        method:'get'
    });
}